package mongohelper;

import mongohelper.exceptions.MongoTranslationException;

import com.mongodb.DBObject;

public interface MongoTranslator {

	<T> T fromDbObject(final DBObject obj, final Class<T> desiredType) throws MongoTranslationException;

	<T> DBObject toDbObject(final T instance) throws MongoTranslationException;

}
